$(document).ready(function(){
  $('a.directfollow').click(function() { 
    var follow = $(this).attr('rel');
    $.get('/directfollow', { ref:follow }, function(data) {
    	alert('Following');
    });
    var title = $(this).attr('title');
    $(this).parent().html(title);
    return false; // prevent default
  });
});